package com.example.auth.utils;

import org.jasypt.util.text.AES256TextEncryptor;

public class Jaspytor {
    public static void main(String[] args) {
   /*     if (args.length != 2) {
            System.out.println("Usage: JasyptDecryptor <password> <encryptedText>");
            System.exit(1);
        }*/

        String password = "encryptionkey";
        String encryptedText = "gNAJ2pFxud29jghBM3pFRJN9lxwtFpRv";

        AES256TextEncryptor textEncryptor = new AES256TextEncryptor();
        textEncryptor.setPassword(password);

        try {
            String decryptedText = textEncryptor.decrypt(encryptedText);
            System.out.println("Decrypted Text: " + decryptedText);
        } catch (Exception e) {
            System.err.println("Decryption failed: " + e.getMessage());
            System.exit(1);
        }
    }
}
